<!-- 单选题 -->

<template>
  <div class="flex1">
    <OurTitle v-bind="$props" />

    <div v-for="option in obj.optionList" :key="option.key" class="DetailQuestionnaire-flex">
      <div>
        <el-radio :value="false" disabled>{{ option.label }}</el-radio>
      </div>

      <div>
        <el-image v-for="img in option.imgList" :key="img" :src="img" :previewSrcList="option.imgList" />
      </div>
      <div class="flex1">
        <div class="el-input__inner">{{ obj.content }}</div>
      </div>

      <div>关联</div>
      <div style="width: 200px">
        <div class="el-input__inner">
          <b>{{ option.related.replace(/,/g, ', ') }}</b>
        </div>
      </div>
    </div>

    <div class="DetailQuestionnaire-flex">
      <div class="DetailQuestionnaire-remark">底部备注</div>
      <OurRemark v-bind="$props" />

      <div style="width: 248px" />
    </div>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import props from '../props'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyRadio',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('../components', true, /vue$/)),

  /**
   * 属性注册 (抽取以便查阅)
   */
  props,
}
</script>
